//
//  BDSetBankcardRequest.m
//  HSY
//
//  Created by 陈浩 on 2017/4/13.
//  Copyright © 2017年 金开门. All rights reserved.
//

#import "BDSetBankcardRequest.h"

@implementation BDSetBankcardRequest

- (NSString *)serviceCode{
    return BD_API_SERVICE_CODE_SET_BANKINFO;
}

- (NSDictionary *)requestData{
    NSAssert(self.cardNO.length > 0, @"开户卡号不能为空");
    NSAssert(self.cardBank.length > 0, @"开户行不能为空");
    NSAssert(self.cardAccountName.length > 0, @"店铺id不能为空");
    NSAssert(self.sid.length > 0, @"开户名不能为空");
    NSAssert(self.bankAddress.length > 0, @"支行地址不能为空");
    NSAssert(self.branchCode.length > 0, @"联行号不能为空");

    NSMutableDictionary *params = [@{} mutableCopy];
    params[@"cardNO"] = self.cardNO;
    params[@"cardBank"] = self.cardBank;
    params[@"cardAccountName"] = self.cardAccountName;
    params[@"sid"] = self.sid;
    params[@"bankAddress"] = self.bankAddress;
    params[@"branchCode"] = self.branchCode;
    params[@"idcardNO"] = self.idcardNO ? self.idcardNO : @"";
    params[@"branchDistrictCode"] = self.branchDistrictCode ? self.branchDistrictCode : @"";

    return params;
}


@end
